package com.lianqi.emcpframework.ddd.gencode.application;

import javax.lang.model.element.Modifier;

import com.lianqi.emcpframework.ddd.gencode.support.TypeBuilderFactory;
import com.squareup.javapoet.TypeSpec;

public final class ApplicationBuilderFactory implements TypeBuilderFactory {
    private final String ifcName;

    public ApplicationBuilderFactory(String ifcName) {
        this.ifcName = ifcName;
    }

    @Override
    public TypeSpec.Builder create() {
        return TypeSpec.interfaceBuilder(ifcName).addModifiers(Modifier.PUBLIC);
    }
}
